package com.sfddata.musicpillow.common.utils;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class MyUtils {

    public static Date stringToDate(String s) throws ParseException {
        Date date = null;
        if (s != null){
            date = new SimpleDateFormat("yyyy-MM-dd").parse(s);
        }
            //LOGGER.error("时间转换错误, string = {}", s, e);
        return date;

    }
}
